package com.newtouch.bxzs.common.base.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户考试结果实体类
 *
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2021/3/25 10:55</td>
 * <td>dingqianbin</td>
 * <td>Create</td>
 * </tr>
 * </table>
 *
 * @author dingqianbin
 * @version 1.0.0
 * @since 1.0.0
 */
@Data
@TableName(value = "ASSISTANT_USER_EXAMINATION_RESULT")
@ApiModel(value = "用户考试结果实体类")
public class UserExaminationResult implements Serializable {

    private static final long serialVersionUID = -5757762443500930973L;

    /** 主键用户考试结果ID */
    @TableId(value = "USER_EXAMINATION_RESULT_ID", type = IdType.ASSIGN_UUID)
    private String userExaminationResultId;

    /** 用户试题题号 */
    @TableField(value = "USER_EXAMINATION_QUESTIONS_TITLE_NUMBER")
    private String userExaminationQuestionsTitleNumber;

    /** 用户试题选项，通过逗号隔离用户选项 */
    @TableField(value = "USER_EXAMINATION_QUESTIONS_OPTION")
    private String userExaminationQuestionsOption;

    /** 是否正确：0-否；1-是； */
    @TableField(value = "IS_CORRECT")
    private Integer isCorrect;

    /** 是否收藏：0-否；1-是； */
    @TableField(value = "IS_COLLECT")
    private Integer isCollect;

    /** 考试ID */
    @TableField(value = "EXAMINATION_ID")
    private String examinationId;

    /** 试卷ID */
    @TableField(value = "EXAMINATION_PAPER_ID")
    private String examinationPaperId;

    /** 试题ID */
    @TableField(value = "EXAMINATION_QUESTIONS_ID")
    private String examinationQuestionsId;

    /** 用户ID */
    @TableField(value = "USER_ID")
    private String userId;

    /** 创建用户ID */
    @TableField(value = "CREATE_USER_ID")
    private String createUserId;

    /** 创建时间 */
    @TableField(value = "CREATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "CST")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 修改用户ID */
    @TableField(value = "UPDATE_USER_ID")
    private String updateUserId;

    /** 修改时间 */
    @TableField(value = "UPDATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "CST")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 备注 */
    @TableField(value = "MEMO")
    private String memo;

}
